<template>
	<view>
		<view  class="uni-common-mt" style="background:#FFF; padding:20rpx;">
			<view class="xyText">{{content.name}}</view>
			<view class="content" v-html="content.content"></view>
		</view>
	</view>
</template>

<script>
	import api from '../../api/index.js'
	export default {
		data() {
			return {
				content: {},
				infoList: [],
				indicatorDots: true,
				interval: 2000,
				duration: 500,
			}
		},
		onLoad(options) {
			this.getDetail(options.id)
		},
		methods: {
			getDetail(id) {
				api.joinHellp.xieyiDetails(id).then(res => {
					if (res.code == 1) {
						this.content = res.data;
						console.log(this.content)
						uni.setNavigationBarTitle({
							title: res.data.name
						})
					}
				})
			}
		}
	}
</script>

<style>
	@import "../../static/css/common.css";
	@import url("./protocol.css");

	.box {
		height: 100vh;
	}

    .xyText{
		text-align: center;
		font-size: 40rpx;
		font-weight: bold;
	}
</style>
